/*
 * Copyright (c) 2016. For Intelligent Group.
 */

package com.intelligent.ispc.core.entity;

import com.intelligent.ispc.common.persistence.BaseEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;


/**
 * Created by Peter on 2016/8/22.
 */
@Entity
@Table(name = "t_toleranceitem")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class ToleranceItem extends BaseEntity {

    private String code;
    private String componentName;
    private String loopType;
    private String coefficient;
    private String nominalSize;
    private String unilateralTolerance;
    private String ldl;
    private String udl;
    private String mean;
    private String sigma;


    @ManyToOne
    @JoinColumn(name = "toleranceScheme_id")
    private ToleranceScheme toleranceScheme;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getComponentName() {
        return componentName;
    }

    public void setComponentName(String componentName) {
        this.componentName = componentName;
    }

    public String getLoopType() {
        return loopType;
    }

    public void setLoopType(String loopType) {
        this.loopType = loopType;
    }

    public String getCoefficient() {
        return coefficient;
    }

    public void setCoefficient(String coefficient) {
        this.coefficient = coefficient;
    }

    public String getNominalSize() {
        return nominalSize;
    }

    public void setNominalSize(String nominalSize) {
        this.nominalSize = nominalSize;
    }

    public String getUnilateralTolerance() {
        return unilateralTolerance;
    }

    public void setUnilateralTolerance(String unilateralTolerance) {
        this.unilateralTolerance = unilateralTolerance;
    }

    public String getLdl() {
        return ldl;
    }

    public void setLdl(String ldl) {
        this.ldl = ldl;
    }

    public String getUdl() {
        return udl;
    }

    public void setUdl(String udl) {
        this.udl = udl;
    }

    public String getMean() {
        return mean;
    }

    public void setMean(String mean) {
        this.mean = mean;
    }

    public String getSigma() {
        return sigma;
    }

    public void setSigma(String sigma) {
        this.sigma = sigma;
    }

    public ToleranceScheme getToleranceScheme() {
        return toleranceScheme;
    }

    public void setToleranceScheme(ToleranceScheme toleranceScheme) {
        this.toleranceScheme = toleranceScheme;
    }
}
